const express = require('express')
const app = express()
app.get('/product/:id/:name', (req, res, next) => {
  console.log(req.params)
  res.end('params')
})
app.get('/login', (req, res, next) => {
  console.log(req.query)
  res.status(206)
  // res.end('query')
  // res.end(JSON.stringify({ name: 1133, age: 45}))
  res.json({ name: 1133, age: 45})
})
app.listen(9009, () => {
  console.log('server quest 请求参数中params和query')
})